package com.ag.bean;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbEventPlanStart entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_EVENT_PLAN_START", schema = "dbo", catalog = "AGDB")
public class TbEventPlanStart implements java.io.Serializable {

	// Fields

	private TbEventPlanStartId id;
	private TbPlanStandard tbPlanStandard;
	private TbEvent tbEvent;
	private String epsNote;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbEventPlanStart() {
	}

	/** minimal constructor */
	public TbEventPlanStart(TbEventPlanStartId id,
			TbPlanStandard tbPlanStandard, TbEvent tbEvent) {
		this.id = id;
		this.tbPlanStandard = tbPlanStandard;
		this.tbEvent = tbEvent;
	}

	/** full constructor */
	public TbEventPlanStart(TbEventPlanStartId id,
			TbPlanStandard tbPlanStandard, TbEvent tbEvent, String epsNote,
			String a, String b, String c) {
		this.id = id;
		this.tbPlanStandard = tbPlanStandard;
		this.tbEvent = tbEvent;
		this.epsNote = epsNote;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "elId", column = @Column(name = "EL_ID", nullable = false, length = 4)),
			@AttributeOverride(name = "EId", column = @Column(name = "E_ID", nullable = false, length = 10)) })
	public TbEventPlanStartId getId() {
		return this.id;
	}

	public void setId(TbEventPlanStartId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EL_ID", nullable = false, insertable = false, updatable = false)
	public TbPlanStandard getTbPlanStandard() {
		return this.tbPlanStandard;
	}

	public void setTbPlanStandard(TbPlanStandard tbPlanStandard) {
		this.tbPlanStandard = tbPlanStandard;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "E_ID", nullable = false, insertable = false, updatable = false)
	public TbEvent getTbEvent() {
		return this.tbEvent;
	}

	public void setTbEvent(TbEvent tbEvent) {
		this.tbEvent = tbEvent;
	}

	@Column(name = "EPS_NOTE", length = 2000)
	public String getEpsNote() {
		return this.epsNote;
	}

	public void setEpsNote(String epsNote) {
		this.epsNote = epsNote;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}